﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRMS_Model;

namespace DataManager
{
    public class DesignationManager
    {
        public static void AddDesignation(Designation designationObj)
        {
            using (HRMSEntities DesignationEntity = new HRMSEntities())
            {
                Designation designation = new Designation();
                designation.DesignationName = designationObj.DesignationName;
                DesignationEntity.Designations.AddObject(designation);

            }

        }
        public static void DeleteDesignation(Designation designationObj)
        {
            using (HRMSEntities DesignationEntity = new HRMSEntities())
            {
                Designation designation = new Designation();
                designation.DesignationName = designationObj.DesignationName;
                DesignationEntity.Designations.DeleteObject(designation);

            }

        }
    }
}